﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SWENAssignment.Classes;

namespace SWENAssignment
{
    public partial class reportingLogin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            Boolean l = DBmanager.LogIn(tbxLoginID.Text, tbxPassword.Text);
            if (l == false)
                lblSuccess.Text = "Invalid login ID / Password";
            else
                Response.Redirect("reportingReport.aspx?");
        }
         
    }
}